#!/usr/bin/env python3
# -*- coding: utf-8 -*-
#
import time
import threading

number=0

def plus():
    global number
    for _ in range(500000):
        number += _
    print("子进程结束, 最终结果: {}".format(number))

for i in range(2):
    t = threading.Thread(target=plus)
    t.start()
    # t.join()

time.sleep(2)
print("主线程结束")
print(499500+499500)


